package com.shop.cereshop.agent.dao.user;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shop.cereshop.agent.param.voucher.PickVoucherDTO;
import com.shop.cereshop.commons.domain.agent.CereAgentPrivate;
import com.shop.cereshop.commons.domain.agent.CereAgentUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import javax.validation.constraints.NotNull;
import java.util.List;

@Mapper
public interface CereAgentPrivateDAO extends BaseMapper<CereAgentPrivate> {

    CereAgentPrivate selectCereAgentRoleByInviteCode(@Param("inviteCode") String inviteCode);

    List<String> selectListByInvitationCode(@Param("candidates") List<String> candidates);

    CereAgentPrivate selectPickCity(@NotNull String cityCode, @NotNull String cityName);

    Integer updateCity(@Param("param") PickVoucherDTO param);
}
